// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_BPT_DRAW_BLUEPRINT_CHANGES_ITEM
// * CreateDate    : 2012/3/24 10:47:13
// * Creater       : CodeSmith
// * LastChangeDate: 2012/3/24 10:47:13
// * LastChanger   : 2012/3/24 10:47:13
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class BptDrawBlueprintChangesItemEntity : EntityBase
    {
        public BptDrawBlueprintChangesItemTable TableSchema
        {
            get
            {
                return BptDrawBlueprintChangesItemTable.Current;
            }
        }

        public BptDrawBlueprintChangesItemEntity()
        {

        }

        public BptDrawBlueprintChangesItemEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.DrawChangesItemId = Convert.ToString(CommonFunctions.ToObject(dr["DRAW_CHANGES_ITEM_ID"]));
            this.DrawChangesId = Convert.ToString(CommonFunctions.ToObject(dr["DRAW_CHANGES_ID"]));
            this.BlueprintId = Convert.ToString(CommonFunctions.ToObject(dr["BLUEPRINT_ID"]));
            this.Remarks = Convert.ToString(CommonFunctions.ToObject(dr["REMARKS"]));
            this.ChangeType = Convert.ToString(CommonFunctions.ToObject(dr["CHANGE_TYPE"]));
            this.PlanOrderItemId = Convert.ToString(CommonFunctions.ToObject(dr["PLAN_ORDER_ITEM_ID"]));
            this.ProductId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_ID"]));
        }

        public BptDrawBlueprintChangesItemEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.DrawChangesItemId = Convert.ToString(CommonFunctions.ToObject(dr["DRAW_CHANGES_ITEM_ID"]));
            this.DrawChangesId = Convert.ToString(CommonFunctions.ToObject(dr["DRAW_CHANGES_ID"]));
            this.BlueprintId = Convert.ToString(CommonFunctions.ToObject(dr["BLUEPRINT_ID"]));
            this.Remarks = Convert.ToString(CommonFunctions.ToObject(dr["REMARKS"]));
            this.ChangeType = Convert.ToString(CommonFunctions.ToObject(dr["CHANGE_TYPE"]));
            this.PlanOrderItemId = Convert.ToString(CommonFunctions.ToObject(dr["PLAN_ORDER_ITEM_ID"]));
            this.ProductId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_ID"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return BptDrawBlueprintChangesItemTable.Current;
            }
        }

        #region Perporty List
        public string DrawChangesItemId
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesItemTable.C_DRAW_CHANGES_ITEM_ID)); }
            set { SetData(BptDrawBlueprintChangesItemTable.C_DRAW_CHANGES_ITEM_ID, value); }
        }

        public string DrawChangesId
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesItemTable.C_DRAW_CHANGES_ID)); }
            set { SetData(BptDrawBlueprintChangesItemTable.C_DRAW_CHANGES_ID, value); }
        }

        public string PlanOrderItemId
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesItemTable.C_PLAN_ORDER_ITEM_ID)); }
            set { SetData(BptDrawBlueprintChangesItemTable.C_PLAN_ORDER_ITEM_ID, value); }
        }
        public string ProductId
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesItemTable.C_PRODUCT_ID)); }
            set { SetData(BptDrawBlueprintChangesItemTable.C_PRODUCT_ID, value); }
        }
        public string BlueprintId
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesItemTable.C_BLUEPRINT_ID)); }
            set { SetData(BptDrawBlueprintChangesItemTable.C_BLUEPRINT_ID, value); }
        }

        public string Remarks
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesItemTable.C_REMARKS)); }
            set { SetData(BptDrawBlueprintChangesItemTable.C_REMARKS, value); }
        }

        public string ChangeType
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesItemTable.C_CHANGE_TYPE)); }
            set { SetData(BptDrawBlueprintChangesItemTable.C_CHANGE_TYPE, value); }
        }

        #endregion
    }


}

